package data;

import java.io.File;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author apple
 */
public class GlobalData {
    
    private static GlobalData instance = new GlobalData();
    
    private Map<PartType, Set<TankPart>> collectedParts;
    
    private GlobalData() {
        
    }
    
    public GlobalData getInstance() {
        return instance;
    }
    
    public void load(File file) {
        
    }
    
    public Iterator<TankPart> getPartsOfType(PartType type) {
        return collectedParts.get(type).iterator();
    }
        
    public enum PartType {
        TYPE_TURRET,
        TYPE_BODY,
        TYPE_TREAD;
    }
            
    private class TankPartInfo {
        
        public String name;
        public boolean unlocked;
        
        public TankPartInfo() {
            
        }
    }
    
}
